<html>
<?php $this->start('content2');
?>
<h2><center>Future Direct Messages</center></h2>
<table>
<tr>
	<th>Direct message text</th>
	<th>Status</th>
	<th>    </th>
</tr>
	<?php foreach($futureDms as $futureDm):?>
	<tr>
		<td><?php echo $futureDm['FutureDm']['messageText']; ?></td>
		
		<td>
            <?php echo $this->Form->postLink(
                'Delete',
                array('action' => 'deleteJEDm', $futureDm['FutureDm']['id']),
                array('confirm' => 'Are you sure you want to delete this ?'));
				?>
			
        </td>
	</tr>
	<?php endforeach; ?>

</table>
<?php $this->end();?>
<?php $this->start('content1');?>
<div class="well pull-left">
            <ul class="nav nav-list">
                <li><a href="/FutureTweets/viewfuturetweets">View my Tweets</a></li>
                <li><?php echo $this->Html->link('View my Direct Messages' , array('controller' => 'FutureDms', 'action' => 'viewfuturedms')); ?></li>
                 </ul>
        </div>
                <?php $this->end();
                ?>
</html>